package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员聚集报警对象 person_crowd_alert
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
@Data
public class PersonCrowdAlert extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 等级 */
    @Excel(name = "等级")
    private String level;

    /** 报警规则名称 */
    @Excel(name = "报警规则名称")
    private String triggerName;

    /** 标签(绑定人的)，逗号隔开 */
    @Excel(name = "标签(绑定人的)，逗号隔开")
    private String tags;

    /** 人员聚集数据 */
    @Excel(name = "人员聚集数据")
    private String point;

    /** 范围 */
    @Excel(name = "范围")
    private String gatherDistance;

    /** 围栏ID */
    @Excel(name = "围栏ID")
    private Integer enclosureId;

    /** 触发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "触发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date raiseTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stopTime;

    /** 报警状态  0:报警; 1:关闭;  */
    @Excel(name = "报警状态  0:报警; 1:关闭; ")
    private Integer state;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 逻辑删除标识 0删除 1正常 */
    private Integer delFlag;

    /** 市局上报唯一ID */
    @Excel(name = "市局上报唯一ID")
    private String governId;

    /** 上报状态 0待上报 1已上报 */
    @Excel(name = "上报状态 0待上报 1已上报")
    private Integer isUpload;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("level", getLevel())
            .append("triggerName", getTriggerName())
            .append("tags", getTags())
            .append("point", getPoint())
            .append("gatherDistance", getGatherDistance())
            .append("enclosureId", getEnclosureId())
            .append("raiseTime", getRaiseTime())
            .append("stopTime", getStopTime())
            .append("state", getState())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("governId", getGovernId())
            .append("isUpload", getIsUpload())
            .toString();
    }
}
